/**
 * Copyright (c) 2002-2012 旭鸣信息
 * All rights reserved. 
 * File：FrontUserCommentService.java
 * History: Mar 20, 2013: Initially created, liuzhi.
 */
package com.xteam.ecsystem.service.front;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.xteam.ecsystem.dao.IFrontUserCommentDao;
import com.xteam.ecsystem.utils.PageCenterStation;

/**
 * 前端用户评论服务层
 * @author liuzhi
 *
 */
@Service
public class FrontUserCommentService {

	@Autowired
	private IFrontUserCommentDao userCommDao;
	
	/**
	 * 获取会员评论（及回复）列表
	 * @author liuzhi Mar 20, 2013
	 * @param userEmail
	 * @param pageIndex
	 * @param pageSize
	 * @return
	 */
	public PageCenterStation<?> getUserComments(String userEmail, int pageIndex, int pageSize){
		return this.userCommDao.getUserComments(userEmail, pageIndex, pageSize);
	}
	
	/**
	 * 删除用户评论
	 * @author liuzhi Mar 21, 2013
	 * @param bucId
	 */
	public void delUserCmt(String bucId){
		this.userCommDao.delUserCmt(bucId);
	}
	
	/**
	 * 级联删除管理员针对用户的评论
	 * @author liuzhi Mar 21, 2013
	 * @param bucId
	 */
	public void delUserReplyCmt(String bucId){
		this.userCommDao.delUserReplyCmt(bucId);
	}
}
